DOS application window does not close when application finishes due to default.
Cause:
This is by default of DOS applications. The MS-DOS window remains open to display messages such as errors that may be generated by the MS-DOS-based application.
Solution:
Select the 'Close on exit' option in the 'Program' properties tab for the DOS application's icon.
1) Right-click the icon for the MS-DOS-based application. (A pop-up menu appears.)
2) Select 'Properties'. (The application's 'Properties' dialog box appears.)
3) Click the 'Program' tab.
4) Select the 'Close on exit' check box.
'Close on exit' check box
5) Click 'Apply'.
6) Click 'OK'.
NOTE 1: The MS-DOS-based application window should now close after the application has finished executing.
NOTE 2: This setting must be changed for each MS-DOS-based application individually. There is no way to set this option globally.